package com.qiwo.webshow.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * <pre>
 *  @author  chenwenchao
 *  @date 2018-10-24 21:38:50
 * 首页地图
 * </pre>
 * <small> 2018-10-24 21:38:50 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("tb_home_img")
@EqualsAndHashCode(callSuper=true) 
public class HomeImgDO  extends Model< HomeImgDO> implements Serializable {
	@TableId
	private Long id;

    /** 标题 */
    @ApiModelProperty("标题")
    @TableField("name")
    private String name;

    private  Integer sort;

    /** 图片url */
    @ApiModelProperty("图片url")
    @TableField("image_url")
    private String imageUrl;

    /** 跳转url */
    @ApiModelProperty("跳转url")
    @TableField("to_url")
    private String toUrl;

    @TableField("type_id")
    private  Integer typeId;

        @Override
        protected Serializable pkVal(){
            return this.id;
        }
}
